# $Id: PKGBUILD 89203 2013-04-28 01:50:15Z cinelli $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Thomas Weißschuh <thomas_weissschuh lavabit com>

pkgname=httpie
pkgver=0.5.0
pkgrel=1
pkgdesc="cURL for humans"
url="https://github.com/jkbr/httpie"
depends=('python-requests' 'python-pygments')
makedepends=('python-distribute')
conflicts=(python-httpie)
replaces=(python-httpie python2-httpie)
license=('BSD')
arch=('any')
source=("http://pypi.python.org/packages/source/h/httpie/httpie-$pkgver.tar.gz")
md5sums=('ada50384b8acb4726638e48d521cce3d')

build() {
    cd "$srcdir/httpie-$pkgver"
    python3 setup.py build
}

package() {
    cd "$srcdir/httpie-$pkgver"
    python3 setup.py install --root="$pkgdir" --optimize=1
}
